package com.hotai.controller;

import com.hotai.comment.dtos.ResponseResult;
import com.hotai.comment.pojo.User;
import com.hotai.service.UserService;
import com.hotai.vo.user.LoginDto;
import com.hotai.vo.user.UserList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/guanuser")
@CrossOrigin
public class UserController {
    @Autowired
    private UserService userService;

    @PostMapping("/loginUser")
    public ResponseResult login(@RequestBody LoginDto dto) {
        return userService.login(dto);
    }



}
